#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>

int main()
{
    int k = 0;
    int x, z;
    char y = 0;
    scanf("%d%c%d%d", &x, &y, &z, &k);
    if (z + k % 60 >= 60)
    {
        x += 1;
    }
    x = (x + k / 60) % 24;
    z = (z + k % 60) % 60;
    printf("%.2d%c%.2d", x, y, z);
    return 0;
}

#include <stdio.h>
#include <math.h>

int main()
{
    int r = 0;
    scanf("%d", &r);
    r = pow(r, 3);
    printf("%.2f", (4.0 / 3.0 * 3.14 * r));
    return 0;
}

#include <stdio.h>

int main()
{
    int a = 0;
    int b = 0;
    int c = 0;
    scanf("%d %d", &a, &b);
    c = b + b - a;
    printf("%d\n", c);
    return 0;
}

#include <stdio.h>

int main()
{
    int h = 0;
    int r = 0;
    scanf("%d %d", &h, &r);
    float y = 0;
    y = 10000 / (3.14 * h * r * r);
    int z = y + 1;
    printf("%d\n", z);
    return 0;
}

#include <stdio.h>

int main()
{
    int n = 0;
    int h = 0;
    int m = 0;
    int x = 0;
    scanf("%d %d %d", &n, &h, &m);
    if (m % h == 0)
    {
        x = m / h;
    }
    else
    {
        x = (m / h) + 1;
    }
    n = n - x;
    printf("%d\n", n);
    return 0;
}

#include <stdio.h>

int main()
{
    double f = 0;
    scanf("%lf", &f);
    printf("%.3lf", (5.0 / 9) * (f - 32));
    return 0;
}

#include <stdio.h>

int main()
{
    int r = 0;
    scanf("%d", &r);
    printf("%.2f", 3.14 * r * r);
    return 0;
}